﻿using System;
// 定义一个类MyMath,提供基本的加减乘除功能，然后进行测试。
namespace 第三题
{
    class MyMath
    {
        public double A { get; set; }
        public double B { get; set; }
        public MyMath() { }
        public MyMath(double  A, double B)
        { 
            this.A = A;
            this.B = B;           
        }
        public void Math()
        {
            double  x = A + B;
            double  y = A - B;
            double  z = A * B;
            double  m = A / B;
            Console.WriteLine(x+","+y+","+z+","+m);
           
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            MyMath ma = new MyMath();
            ma.A = int.Parse(Console.ReadLine());
            ma.B = int.Parse(Console.ReadLine());
            ma.Math();
        }
    }
}
   

